#ifndef _INIT_H_
#define _INIT_H_

/**
 * \file     init.h
 * \brief    init 
 * \author   fatma.jaafar@esprit.tn
 * \version  0.
 * \date     first release 
 *
 * This file describe public init structure and functions.
 *
 * ----------------------------------------
 * Copyright (C) 2014 FATMA JAAFAR
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

/**
 * \defgroup GAME GAME
 * \{ */

/**
 * \defgroup INIT INIT
 * \{ */


/* =================================80======================================= */
/*                               INCLUDES                                     */
/* =================================80======================================= */
#include "structures.h"

/* =================================80======================================= */
/*                           STRUCTURE GLOBAL                                 */
/* =================================80======================================= */

/**
 * \brief definie une variable globale de gestion du jeu.
 */
Gestion jeu;

/**
 * \brief definie une variable globale de gestion du hero.
 */
GameObject player;

/**
 * \brief definie une variable globale de gestion du background.
 */
Map map;

/**
 * \brief definie une variable globale de gestion des zombies.
 */
GameObject monster[MONSTRES_MAX];
/**
 * \brief definie une variable globale de gestion des shurikens.
 */
GameObject shuriken[10];

/**
 * \brief definie une variable globale du font.
 */

TTF_Font *font;

/* =================================80======================================= */
/*                               FUNCTIONS                                    */
/* =================================80======================================= */

/**
 *
 * \brief   charger une image.
 *
 * \param   char* name                        : nom de la surface.
 * \return  SDL_Surface 
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
SDL_Surface *loadImage(char *name);

/**
 *
 * \brief   charger la map.
 *
 * \param   char* name                        : nom de la surface.
 * \return   
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
void loadMap(char *name);

/**
 *
 * \brief   liberer la font.
 *
 * \param   TTF_Font* font                        : pointeur sur la font.
 * \return   
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
void closeFont(TTF_Font *font);

/**
 *
 * \brief   charger la font.
 *
 * \param   char* 	                          : text a afficher.
 * \param   int 	                          : taille du texte.
 * \return  TTF_Font
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
TTF_Font *loadFont(char *, int);

/**
 *
 * \brief   charger la musique de fond.
 *
 * \param   char filename[]	                          : chemain du fichier.
 * \return  
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
void loadSong( char filename[200] );

/**
 *
 * \brief   charger l effet sonore.
 *
 * \param   void
 * \return  
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
void loadSound(void);

/**
 *
 * \brief   libere l effet sonore.
 *
 * \param   void
 * \return  
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
//libere le son
void freeSound(void);


// INIT
/** \} */
// GAME
/** \} */

#endif /* _INIT_H_ */
